package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.TiffSeg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TiffSegMapper {

    List<TiffSeg> selectTiffList(TiffSeg tiffSeg);

    TiffSeg selectTiffById(@Param("id") Long id);

    TiffSeg selectTiffByIdWithStatus(@Param("id") Long id, @Param("admin") Integer admin);

    int selectTiffBySharePassword(@Param("sharePassword") String sharePassword);

    int insertTiff(TiffSeg tiffSeg);

    int updateTiff(TiffSeg tiffSeg);

    int updateSharePassword(@Param("sharePassword") String sharePassword, @Param("userId") Long userId, @Param("id") Long id);

    int updateDziObjectName(@Param("dziObjectName") String dziObjectName, @Param("id") Long id);

    int updateStatus(@Param("status") String status, @Param("id") Long id);

    int updateUploadStatus(@Param("id") Long id, @Param("objectName") String objectName);

    int updateIsSeg(@Param("id") Long id, @Param("isSeg") Integer isSeg);

    int deleteTiffById(@Param("id") Long id);

    int deleteTiffByIds(@Param("array") List<Long> array);

}
